﻿using DatabaseCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemCore.Converter
{
    public static class ConverterHelper
    {
        public static tbl_Transaction OrderDetailToTransaction(tbl_OrderDetail OrderDetail)
        {
            return new tbl_Transaction()
            {
                OrderNo = OrderDetail.OrderNo,
                MaterialNo = OrderDetail.MaterialNo,
                Plant = OrderDetail.Plant,
                Qty = OrderDetail.Qty,
                UpdateDate = DateTime.Now,
                UpdateBy = "Upload Order"
            };
        }
    }
}
